#!/usr/bin/env python3
# -*- coding: utf-8 -*-

__author__ = 'cuihailong'

import dbsql, asyncio
from models import User


# async def test(loop_args):
#     """
#     测试数据库连接并插入数据测试
#     :param loop_args:
#     :return:
#     """
#     await dbsql.create_pool(loop=loop_args, user='root', password='root', db='aiopylong')
#     u = User(name='Test', email='test@example.com', passwd='1234567890', image='about:blank')
#     await u.save()
#     dbsql.__pool.close()
#     await dbsql.__pool.wait_closed()
#
#
# if __name__ == '__main__':
#     loop = asyncio.get_event_loop()
#     loop.run_until_complete(test(loop))
#     loop.close()

import os

def aa(m=1, *args, **kwargs):
    pass

print(os.path.join(os.path.abspath(os.path.dirname(os.path.dirname(__file__))), r'staticfiles\static'))